@charset "UTF-8";
/* 主布局样式 */
.site-layout {
  min-height: 100vh;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

/* 内容区样式 */
.site-content {
  margin: 24px 16px;
  padding-bottom: 24px;
  /* 为页脚留出空间 */
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  /* 防止产生双滚动条 */
  /* 内容容器 */
  /* 权限相关 */
}

.site-content .content-container {
  flex: 1;
  padding: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  /* 添加垂直滚动条 */
  overflow-x: hidden;
  /* 隐藏水平滚动条 */
  max-height: calc(100vh - 150px);
  /* 设置最大高度，留出页眉页脚空间 */
  /* 自定义滚动条样式 */
}

.site-content .content-container::-webkit-scrollbar {
  width: 8px;
}

.site-content .content-container::-webkit-scrollbar-track {
  background: #f0f2f5;
  border-radius: 4px;
}

.site-content .content-container::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 4px;
}

.site-content .content-container::-webkit-scrollbar-thumb:hover {
  background-color: #bfbfbf;
}

.site-content .permission-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ff4d4f;
}

.site-content .permission-denied h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.site-content .permission-denied p {
  color: rgba(0, 0, 0, 0.45);
}

/* 适配高度较大的内容 */
.page-with-table .ant-table-wrapper {
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}

/* 表单页面样式 */
.form-page {
  overflow-y: auto;
  padding-bottom: 24px;
}

@media (max-width: 768px) {
  .site-layout .site-content {
    margin: 16px 12px;
  }
  .site-layout .site-content .content-container {
    padding: 16px;
    max-height: calc(100vh - 120px);
  }
}

@media (min-height: 1200px) {
  .site-content .content-container {
    max-height: calc(100vh - 180px);
  }
}
